package com.bw.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bw.bean.Permision;

import com.bw.service.SysService;


@Controller
@RequestMapping("manager")
public class ManagerController {
	
	@Autowired
	private SysService sysService;
	
	/*
	 * 获取权限以及功能列表
	 * */
   @RequestMapping("getRoleAndPowerList")
   @ResponseBody
   public List<Permision> getRoleAndPowerList(Model model ,Integer tid){
	  
	   List<Permision> PermissionList = sysService.findPermissionList(tid);
	   
	    return PermissionList;
   }
  
	

}
